package com.itheima.demo06;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/7/14 10:32
 */
public class Thread02 extends Thread {
    @Override
    public void run() {
        synchronized (Money.lock) {
            while (Money.maney == 100000) {
            }
            System.out.println(Thread.currentThread().getName()+"结婚基金已经不是十万了!");
        }
    }
}
